package com.charlotte.study.gupao.flyweight.ticket;

/**
 * @author junjie.ding
 * @date 2020/3/10
 */
public class Test {

    public static void main(String[] args) {

        ITicket ticket = TrainTicketFactory.getTrainTicket("杭州东", "温州南");
        ticket.showInfo("1");

        ITicket ticket2 = TrainTicketFactory.getTrainTicket("杭州东", "温州南");
        ticket2.showInfo("3");
    }
}
